// vite.config.ts
import { fileURLToPath, URL } from 'node:url'
import pxtorem from 'file:///C:/Users/86188/Desktop/111/four-groups/node_modules/postcss-pxtorem/index.js'
import { defineConfig } from 'file:///C:/Users/86188/Desktop/111/four-groups/node_modules/vite/dist/node/index.js'
import vue from 'file:///C:/Users/86188/Desktop/111/four-groups/node_modules/@vitejs/plugin-vue/dist/index.mjs'
import AutoImport from 'file:///C:/Users/86188/Desktop/111/four-groups/node_modules/unplugin-auto-import/dist/vite.js'
import Components from 'file:///C:/Users/86188/Desktop/111/four-groups/node_modules/unplugin-vue-components/dist/vite.js'
import { VantResolver } from 'file:///C:/Users/86188/Desktop/111/four-groups/node_modules/@vant/auto-import-resolver/dist/index.esm.mjs'
import { ElementPlusResolver } from 'file:///C:/Users/86188/Desktop/111/four-groups/node_modules/unplugin-vue-components/dist/resolvers.js'
var __vite_injected_original_import_meta_url =
  'file:///C:/Users/86188/Desktop/111/four-groups/vite.config.ts'
var vite_config_default = defineConfig({
  plugins: [
    vue(),
    AutoImport({
      resolvers: [VantResolver(), ElementPlusResolver()]
    }),
    Components({
      resolvers: [VantResolver(), ElementPlusResolver()]
    })
  ],
  css: {
    postcss: {
      plugins: [
        pxtorem({
          rootValue: 37.5,
          //手机设计稿宽度为375px的
          propList: ['*'],
          //属性的选择器，*表示通用
          exclude: /web/i,
          //忽略web下的所有文件
          selectorBlackList: ['.a-']
          // 过滤掉.a- 开头的class，不进行rem转换
        })
      ]
    }
  },
  resolve: {
    alias: {
      '@': fileURLToPath(new URL('./src', __vite_injected_original_import_meta_url))
    },
    extensions: ['.mjs', '.js', '.ts', '.jsx', '.tsx', '.json', '.vue']
  },
  server: {
    proxy: {
      '/v1': {
        target: 'http://www.chunyuyisheng.com',
        changeOrigin: true,
        rewrite: (path) => path.replace('/v1', '')
      },
      '/api': {
        target: 'http://124.221.74.149:8011',
        changeOrigin: true,
        rewrite: (path) => path.replace('/api', '')
      },
      '/oss': {
        target: 'http://localhost:9000',
        changeOrigin: true,
        rewrite: (path) => path.replace('/oss', '')
      }
    }
  },
  build: {
    // 这里可以设置更细致的配置
    rollupOptions: {
      onwarn(warning, warn) {
        if (warning.code === 'UNUSED_EXTERNAL_IMPORT') return
        warn(warning)
      }
    },

    chunkSizeWarningLimit: 1000 // 设置警告阈值为 1000 KB
  }
})
export { vite_config_default as default }
//# sourceMappingURL=data:application/json;base64,ewogICJ2ZXJzaW9uIjogMywKICAic291cmNlcyI6IFsidml0ZS5jb25maWcudHMiXSwKICAic291cmNlc0NvbnRlbnQiOiBbImNvbnN0IF9fdml0ZV9pbmplY3RlZF9vcmlnaW5hbF9kaXJuYW1lID0gXCJDOlxcXFxVc2Vyc1xcXFw4NjE4OFxcXFxEZXNrdG9wXFxcXDExMVxcXFxmb3VyLWdyb3Vwc1wiO2NvbnN0IF9fdml0ZV9pbmplY3RlZF9vcmlnaW5hbF9maWxlbmFtZSA9IFwiQzpcXFxcVXNlcnNcXFxcODYxODhcXFxcRGVza3RvcFxcXFwxMTFcXFxcZm91ci1ncm91cHNcXFxcdml0ZS5jb25maWcudHNcIjtjb25zdCBfX3ZpdGVfaW5qZWN0ZWRfb3JpZ2luYWxfaW1wb3J0X21ldGFfdXJsID0gXCJmaWxlOi8vL0M6L1VzZXJzLzg2MTg4L0Rlc2t0b3AvMTExL2ZvdXItZ3JvdXBzL3ZpdGUuY29uZmlnLnRzXCI7aW1wb3J0IHsgZmlsZVVSTFRvUGF0aCwgVVJMIH0gZnJvbSAnbm9kZTp1cmwnXHJcblxyXG5pbXBvcnQgcHh0b3JlbSBmcm9tICdwb3N0Y3NzLXB4dG9yZW0nO1xyXG5pbXBvcnQgeyBkZWZpbmVDb25maWcgfSBmcm9tICd2aXRlJ1xyXG5pbXBvcnQgdnVlIGZyb20gJ0B2aXRlanMvcGx1Z2luLXZ1ZSdcclxuaW1wb3J0IEF1dG9JbXBvcnQgZnJvbSAndW5wbHVnaW4tYXV0by1pbXBvcnQvdml0ZSc7XHJcbmltcG9ydCBDb21wb25lbnR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